#include	<iostream>
#include	<string>
#include	"IObject.hh"
#include	"AToy.hh"
#include	"Teddy.hh"
#include	"LittlePony.hh"

Object		**MyUnitTests()
{
  Object	**obj = new Object*[3];

  obj[0] = new LittlePony("gay pony");
  obj[1] = new Teddy("bisounours");
  obj[2] = NULL;
  return (obj);
}

int		main()
{
  Object	**obj = MyUnitTests();

  for (int i = 0 ; obj[i] ; i++)
    {
      std::cout << "My toy is named " << obj[i]->getName() << " and when we take it, it says :" << std::endl;
      obj[i]->isTaken();
    }
  for (int i = 0 ; obj[i] ; i++)
    delete obj[i];
  delete obj;
}
